package com.carleasoft.mps.file.mapper;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.carleasoft.mps.file.bean.entity.FileManage;
import feign.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface FileManageMapper extends BaseMapper<FileManage> {

    List<JSONObject> listAll(@Param("tableName")String tableName, @Param("id") String id, @Param("fields")JSONArray fields);


    Boolean saveMinioUrl(@Param("fieldList")  List<Map<String,String>> fieldList,
                      @Param("tableName") String tableName,
                      @Param("id")String id,
                      @Param("idValue")String idValue);
}
